package com.fyl.pattern.strategy;

/**
 * 促销员(环境类)
 */
public class SaleMan {
    //聚合策略对象
    private Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public SaleMan(Strategy strategy) {
        this.strategy = strategy;
    }

    //油促销员展示促销活动给用户
    public void saleManShow(){
        strategy.show();
    }
}
